//
//  BRAlertCustomView.h
//  BrezzeSaaS
//
//  Created by IOS on 2021/9/27.
//  Copyright © 2021 Brezze GWG. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@class BRAlertListCell;

typedef void(^AlertBlcok)(NSString *changeText,NSInteger index,void(^hidd)(BOOL hidden));
typedef void(^AlertOtpBlcok)(NSString *codeStr,NSString *accountStr,NSString *otpStr,void(^hidd)(BOOL hidden));

@interface BRAlertCustomView : UIView

- (instancetype)initWithFrame:(CGRect)frame type:(NSInteger)type;

- (void)hidd;
/// 定位选择项
- (void)selectStr:(NSString *)str;

@property (nonatomic,strong) UIView *contentView;

@property (nonatomic,strong) NSString *titleStr;

@property (nonatomic,strong) QMUITextField *textTF;
@property (nonatomic,strong) QMUITextField *otpTF;
@property (nonatomic,strong) QMUIButton *otpBtn;
@property (nonatomic,strong) QMUIButton *areaBtn;
@property (nonatomic,strong) QMUILabel *titleLB;

@property (nonatomic,copy) AlertBlcok alertBlock;

@property (nonatomic,copy) AlertOtpBlcok alertOtpBlock;

@property (nonatomic,assign) NSInteger selIndex;


@property (nonatomic,strong) NSArray *listArr;

@property (nonatomic,strong)  QMUITableView *tableView;

@property (nonatomic,copy) void(^sendClick)(NSString *codeStr,NSString *accountStr,QMUIButton *btn);

- (void)setRightBtnTitle:(NSString *)title;

@end


@interface BRAlertListCell : UIView

- (void)hiddenLine:(BOOL)hidden;

@property (nonatomic,assign) BOOL isSelected;

@property (nonatomic,strong) NSString *titleStr;

@end

NS_ASSUME_NONNULL_END
